<?php
global $wp_query;
$args = array_merge(
	$wp_query->query,
	array(
		'post_type' => 'document',
		'meta_query' => array(
			array(
				'key' => 'documenttype',
				'value' => 'Data Sheet',
				'compare' => '=='
			)
		),
		'tax_query' => array(
			array(
				'taxonomy' => 'wpdr-file-tags',
				'field' => 'slug',
				'terms' => array(rel_flatplates)
			)
		)
	)
);
query_posts($args);
include('wp-includes/feed-rss2.php');
?>